package com.tianqu.tms.www.finance.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.JOptionPane;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tianqu.tms.core.base.TmsAction;
import com.tianqu.tms.core.base.UserContext;
import com.tianqu.tms.core.util.TmsConstants;
import com.tianqu.tms.www.finance.controller.CarProxyRetreatTransAccInputController;
import com.tianqu.tms.www.finance.viewhelper.CarProxyPaySearchInputViewHelper;

public class CarProxyRetreatTransAccInputAction extends TmsAction {

	@Override
	protected ActionForward doAction(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response,
			UserContext uc) throws Exception {

		CarProxyRetreatTransAccInputController controller = new CarProxyRetreatTransAccInputController();
		controller.execute(uc);
		CarProxyPaySearchInputViewHelper viewhelper = new CarProxyPaySearchInputViewHelper();
		viewhelper = (CarProxyPaySearchInputViewHelper)uc.getAttribute(VIEWHELP);
//		if(viewhelper.getBackFlag() == 2){
//			//打出提示信息   会员积分不够使用！
//			JOptionPane.showMessageDialog(null, "【会员积分不足】，请联系管理员处理!");
//			
//		}
		return mapping.findForward(TmsConstants.SUCCESS);
	}

}
